package com.xiaohudie.thread;

/**
 * @Author xiao hu die
 * @Date 2022/2/20 15:42
 * @Version 1.0
 */
public class Test03 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
        });
        thread.setName("刘碟");
        Thread thread1 = new Thread(() -> {
            System.out.println(Thread.currentThread().getName());
        });
        thread1.setName("龚雪妍");
       thread.start();
       thread1.start();
        System.out.println(Thread.currentThread().getName());

    }
}
